#ifndef __64EF9DED_8AF7_4886_BF88_16BAF3610FAE__
#define __64EF9DED_8AF7_4886_BF88_16BAF3610FAE__

#include "../import/head.h"
#include "../tools/head.h"
#include "data.h"
#include "udp.h"

//////////////////////////////////////////////////////////////////////////////////
// 

namespace xos_sgsj
{
    class session;

	class tcp : public xos_stl::mem_pool_item< tcp, thread_lock >
    {
    public:
        tcp();
        ~tcp();

    public:
        xos_http::i_parse_request * m_pParseRequest;
        xos_http::i_compose_return * m_pComposeRet;

        session * m_pSession;
        void * m_pAioKey;

        int m_nPostAcceptNum;
        int m_nPostRecvNum;
        int m_nPostSendNum;

		char m_szIp[256];
        int m_nPort;

    public:
		int release();
        int init();
        int term();
    };
} // xos_sgsj

#endif // __64EF9DED_8AF7_4886_BF88_16BAF3610FAE__
